package com.volunteer.util;

/**
 * 常量类
 *
 * @author willow
 * @version v.0.1
 * @date 2018年08月14日
 */
public class Constants {
    // SUCCESS
    public final static String DEFAULT_SUCCESS_MESSAGE = "操作成功";
    public final static String DEFAULT_SUCCESS_DELETE_MESSAGE = "删除成功";
    public final static String DEFAULT_SUCCESS_UPDATE_MESSAGE = "修改成功";
    public final static String DEFAULT_SUCCESS_REGISTER_MESSAGE = "注册成功";
    public final static String DEFAULT_SUCCESS_LOGIN_MESSAGE = "登录成功";
    public final static String DEFAULT_SUCCESS_LOGOUT_MESSAGE = "已退出登陆";
    // FAIL
    public final static String DEFAULT_FAIL_DELETE_MESSAGE = "删除失败";
    public final static String DEFAULT_FAIL_UPDATE_MESSAGE = "修改失败";
    public final static String DEFAULT_FAIL_LOGIN_MESSAGE = "用户未登录";
    public final static String DEFAULT_FAIL_REGISTER_MESSAGE = "注册失败";
    public final static String DEFAULT_FAIL_USER_NOT_EXIST = "用户不存在";
    public final static String DEFAULT_FAIL_INVALID_USER = "非法用户";
    public final static String DEFAULT_FAIL_USER_NOT_LOGGED_IN = "用户未登录";
    public final static String DEFAULT_FAIL_PARAM_ERROR = "参数错误";
    public final static String DEFAULT_FAIL_PASSWORD_ERROR = "密码错误";
    public final static String DEFAULT_FAIL_USER_NAME_OR_PWD_ERROR = "用户账号或密码错误";
    public final static String DEFAULT_FAIL_MESSAGE = "操作失败";
    public final static String DEFAULT_FAIL_PERMISSIONS_MESSAGE = "权限不足";
    public final static String DEFAULT_FAIL_UNKNOWN_ERROR = "未知错误";
    public final static String DEFAULT_FAIL_REQUEST_FAILED = "请求失败";

    /**
     * 缓存中的key值
     **/
    // 用户登录token前缀
    public final static String REDIS_USER_LOGIN = "login::";
    // 用户信息
    public final static String REDIS_USER_MESSAGE = "userMessage";
    // 省份信息
    public final static String REDIS_PROVINCIAL = "provincial";

    /** 缓存时间 **/
    // 10天(分钟)
    public final static int TENDAYS_MINUTES = 14400;

    // header中token的变量名
    public final static String VOLUNTEER_AUTH = "volunteer-auth";
    // 随机字符串的长度
    public final static int SESSION_ID_SIZE = 12;
    // 百度图片识别APP_ID
    public static final String BAIDU_PHOTO_APP_ID = "11742442";
    // 百度图片识别API_KEY
    public static final String BAIDU_PHOTO_API_KEY = "HFVDeSen5lnQrGvoPhBHOhBj";
    // 百度图片识别SECRET_KEY
    public static final String BAIDU_PHOTO_SECRET_KEY = "RFz1psQ39mg0Qf77vxxyrLTjfGrl4K8V";
    // 百度地图定位AK
    public static final String BAIDU_MAP_AK = "87kxEUAuK9yc4G90KGGOUaFtxk0dX8F2";
    // 百度地图定位SK
    public static final String BAIDU_MAP_SK = "mb2xlOiWznKm776UdlaYHVp2sDu0sPp4";

}
